	.text
main:
	# FUNCTION PROLOGUE
	subu $sp, $sp, 84
	sw $s0, 8($sp)
	sw $ra, 76($sp)
	sw $fp, 80($sp)
	addu $fp, $sp, 84
	# END FUNCTION PROLOGUE

	li $t15, 91
	li $s0, 67
	move $a1, $s0
	# PRE-CALL -> NO REGISTER NEEDS TO BE SAVED
	jal foo
	move $s0, $v0
	j L15
L15:
	# FUNCTION EPILOGUE
	lw $fp, 80($sp)
	lw $ra, 76($sp)
	lw $s0, 8($sp)
	addu $sp, $sp, 84
	jr $ra 
	# END FUNCTION EPILOGUE

foo:
	# FUNCTION PROLOGUE
	subu $sp, $sp, 84
	sw $s0, 8($sp)
	sw $s1, 12($sp)
	sw $ra, 76($sp)
	sw $fp, 80($sp)
	addu $fp, $sp, 84
	# END FUNCTION PROLOGUE

	li $s1, 20
	bgt $t0, $t1, L8
L9:
	li $s0, 0
L10:
	bgtz $s0, L11
L12:
	li $s0, 2
	mul $s13, $s0, $t2
	add $t26, $t16, $t10
L13:
	# PRE-CALL -> NO REGISTER NEEDS TO BE SAVED
	jal printInt
	move $s0, $v0
	move $v0, $s0
	j L14
L8:
	li $s0, 1
	j L10
L11:
L5:
	bgt $t0, $t1, L2
L3:
	li $s0, 0
L4:
	bgtz $s0, L7
L6:
	add $t32, $t0, $t1
	add $t35, $t8, $s1
	j L13
L2:
	li $s0, 1
	j L4
L7:
	sub $t36, $t0, 3
	add $t37, $t1, 4
	j L5
L14:
	# FUNCTION EPILOGUE
	lw $fp, 80($sp)
	lw $ra, 76($sp)
	lw $s0, 8($sp)
	lw $s1, 12($sp)
	addu $sp, $sp, 84
	jr $ra 
	# END FUNCTION EPILOGUE

	.data
